/**
 *
 * Copyright 2012 TeleNav, Inc. All rights reserved.
 * EvaluationRequest.java
 *
 */
package com.telenav.snowsweeper.net;

import com.telenav.snowsweeper.UrlsOfServer;
import com.telenav.snowsweeper.data.Route;

/**
 *@author hhzhu
 *@date 2012-12-7
 */
public class EvaluationRequest extends AbstractRequest
{
    private int level;
    private long timestamp;
    private Route route;
    
    public EvaluationRequest(ICallBack caller, int level, long timestamp, Route route)
    {
        super(caller);
        this.level = level;
        this.timestamp = timestamp;
        this.route = route;
    }
    @Override
    public String getRequestUrl()
    {
        return UrlsOfServer.getInsttance().getURLByType(UrlsOfServer.TYPE_CONFIG_EVALUATION) + "?level=" + level + "&timestamp=" + timestamp +  (route == null?"":("&route=" + route.getRequestParamers()));
    }

}
